package com.dingreading.cloud.soms.controller;

import com.dingreading.cloud.common.base.R;
import com.dingreading.cloud.soms.service.MstCiStudentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/front/mst")
@Api(tags = "名师堂数据迁移到叮叮")
public class MstDataController {

    @Resource
    private MstCiStudentService ciStudentService;

    @ApiOperation(value = "1、4店员工账号迁移")
    @PostMapping(value = "/transferStaff")
    public R<Object> transferStaff() throws Exception {
        return ciStudentService.transferStaff();
    }

    @ApiOperation(value = "2、4店会员数据迁移")
    @PostMapping(value = "/transferMember")
    public R<Object> transferMember() throws Exception {
        return ciStudentService.transferMember();
    }

    @ApiOperation(value = "3、4店订单服务数据迁移")
    @PostMapping(value = "/transferOrder")
    public R<Object> transferOrder() throws Exception {
        return ciStudentService.transferOrder();
    }

    @ApiOperation(value = "4、4店教室数据迁移")
    @PostMapping(value = "/transferRoom")
    public R<Object> transferRoom() throws Exception {
        return ciStudentService.transferRoom();
    }

    @ApiOperation(value = "5、4店班级数据迁移")
    @PostMapping(value = "/transferClass")
    public R<Object> transferClass() throws Exception {
        return ciStudentService.transferClass();
    }

    @ApiOperation(value = "6、4店班级学生数据迁移")
    @PostMapping(value = "/transferClassMember")
    public R<Object> transferClassMember() throws Exception {
        return ciStudentService.transferClassMember();
    }

    @ApiOperation(value = "7、4店排课数据迁移")
    @PostMapping(value = "/transferLesson")
    public R<Object> transferLesson() throws Exception {
        return ciStudentService.transferLesson();
    }

    @ApiOperation(value = "8、4店学生点名数据迁移")
    @PostMapping(value = "/transferCallName")
    public R<Object> transferCallName() throws Exception {
        return ciStudentService.transferCallName();
    }

    @ApiOperation(value = "4店学生小程序课堂巩固数据迁移")
    @PostMapping(value = "/transferInClass")
    public R<Object> transferInClass() throws Exception {
        return ciStudentService.transferInClass();
    }

    @ApiOperation(value = "4店学生小程序课后作业数据迁移")
    @PostMapping(value = "/transferAfterClass")
    public R<Object> transferAfterClass() throws Exception {
        return ciStudentService.transferAfterClass();
    }

    @ApiOperation(value = "4店学生小程序学习轨迹数据迁移")
    @PostMapping(value = "/transferLearning")
    public R<Object> transferLearning() throws Exception {
        return ciStudentService.transferLearning();
    }

}
